$OpenBSD: patch-chrome_browser_metrics_drive_metrics_provider_linux_cc,v 1.1 2015/05/26 17:37:39 robert Exp $
--- chrome/browser/metrics/drive_metrics_provider_linux.cc.orig.port	Thu May 14 00:23:03 2015
+++ chrome/browser/metrics/drive_metrics_provider_linux.cc	Sun May 24 17:02:01 2015
@@ -4,7 +4,13 @@
 
 #include "chrome/browser/metrics/drive_metrics_provider.h"
 
+#if defined(OS_BSD)
+#include <sys/types.h>
+#define MAJOR(dev) major(dev)
+#define MINOR(dev) minor(dev)
+#else
 #include <linux/kdev_t.h>  // For MAJOR()/MINOR().
+#endif
 #include <sys/stat.h>
 #include <string>
 
